payment model bug fix