Fix problem with repl type conversion