Fix bug in availability modification.