Update Main.php

Should fix all the problems. :)