little bugfix on the getAvaliable method