fixed case where first data was not being written
v0.7.1