Clear canvas bug fixed