fixed duplicated rows