bug fix save and load canvas