prevent EGL_BAD_SURFACE after back to preview from settings