fixing exception related to x1=0/y1=0