What type of logical error is being committed here?