fixing nbsp issue