fixed canvas not working problem