fix failsafe