clear canvas works correctly