Repl: Fix issue where location  was not updated.

This was a regression from 75ca1e0b25027bb152b96245a899bd7d4b57178a

Fixes #1234