Fixed minor bug in converter