Fixed issue with deactivated app not reactivating under certain circumstances