Fix for page title change bug