Fix Message too long bug in REPL

Fixes #20