Fix Bresenham Algorithm.