BIT-121 Getting an notice of an "Undefined offset" while making repayment


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