Fixed multiple canvas appends issue.