Fixed dataset write.