Threw InvalidStateError