Fixed Bugs at Paint Canvas Boundries