fixed canvas removal on refresh