yet another unsolved mystery of nulls, added check for null keys in AMTrack.cs