function completion fix for REPL console