Fixed a wrap bug in firefox