fixed attribute "isAvailibility" in sql statement