fix bug from #3020
Merge pull request #3042 from gratipay/fix-3020

Fix bug from #3020