Error on main class load