fixed GetTarget in AMUtil.cs to also find inactive objects