Found mistake in parameter order (x,y was flipped)