clearrect fix