remove duplicate and orphan page