Fix issue when AT Schema had no primary field