Mainpage code example fix