fixed canvas issue