fixing child pages bug