Fixes negative performance numbers

Fixes #320