fix some of the writers to help tests to pass.