Fixed bug in converter