fixed a bug: resources repeated after search by pages