fixed a bug in the find method which found pages even though they didn't exist