Fix bug when setting state to Transferred