Fix some AABB query issues.