fixing formatting after a preview