Fix todo creation state transition bug