fix possible bug for new entries without pagereference