Fix blank canvas bug