fixed issue with editing availability