Fixed #2 by removing nbsp before rendering