fixed multiple record error