fix edge of canvas craziness