Fix a Bug in function startpage()