fixed refresh creating duplicate records