fixed bug causing showing all pages as ghost pages