fixed duplicate value when read/write values == 0