fix &nbsp; bug