fix bug when payment table is empty