fixed small bug with StringBuilder