fixed canvas clearing