Fixed bug removing dup rows