solved canvas issue