Fixed bug about entering and leaving premises.