Fix problem of sum in payment + retrieve only the active payment Fixes #73