fixed canvas size bug