Fixed error on MainPage
tweaks