Fix for #1138 when no resoruces are specified