fixed max occupancy issue