add defer from panic in converter