fixed the &nbsp; bug