Fix writer alignment.

Close #11.