services.py fix crash if in standby