Fixed variable name in the Repo->edit() method.