fixed some issues with the canvas