fix sprite masking on render ending