When fixing counts, add STI type condition only to STI tables.