fixed crash when ATG isn't used