canvas bugfixing