Try to fix toWrite nulling.
Merge pull request #4 from creationix/master

Try to fix toWrite nulling.