Fixes unclickable button bug by resizing canvas.