Y is this happening?

Also, post the sketch that illustrates the problem.