fixes #24 "Error loading page" occures when navigating to another page in sample demo