Bug fix in isAvailable(const char*)