fixed nbsp removal issue