fixed bugs in writers related to box information