fix document formatter