Fixed a crash when creating a new guest.