JC: fixed bug in payment log view caused by nil