fixes for Amber REPL

This pull-request should fix issue #283