fixed the action_is_ready logic