Fixed error with x,y=0