Fix writes getting processing multiple times.