bugfixes for getting wallet on repay


Signed-off-by: Yasen Yankov <iasen.iankov@gmail.com>