Bugs fix clear the canvas