Analytics incorrect amount

Fixes #1014