Fix functionality to edit availabilities.