fix check if app is enabled