fixing resource finding issue due to non-array objects