fixing black screen after closing the app