fixed assertion failure in mainscene