Fix to listDefinitions method