fixed a canvas refresh bug
Merge pull request #5 from danasf/master

fixed a canvas refresh bug