fixed small bug in converter