Fixed the offset of the canvas drawings.