fixed hex autodetection in converter