fix canvas not clearing when switching contexts