Update Main.php

Hopefully fixed false detection