fix pre word wrap problem; previous version has a little bug