Fixed switching screenshot bug