fixed a bug in list-available