Use current page as parent instead of mainPage (needed after 661cfa87a29e754ac345cebfefc9fd6b8155e9ff)