Fixes and activates clear canvas function.