fix for the multiple sum during writes.