(shift_state): Fix the condition of taking init actions.