fixed empty line wrapping issue