Fixed _on_state_change promise name