Removing duplicated entries