fixed listResources query