fix in addAvailabilities