little misbehave in bresenham algo