Fixes problems with parent() function
Merge pull request #474 from NicNLD/page-parent

Fixes problems with parent() function