fixed empty page when trying to exit app