Fixed screen staying black sometimes after restoring app from background