fixed canvas sketch issue