Fixed error for parent page exists