fix check for enable profile and switch mode for push notifications