Fixed annoying ass bug in Writer