fixed canvas movement bug