Minor bug fixes to simplepage