api bills bug fix