Fix download earnings decrease on payment refund. #1627