Fixed ai rep not saving when leaving map
Fixed visibility cache not checking properly