Fixed a bug which occurred when a specific resource did not have a selector