fixing an issue with nbsp