Fixed percentage error

Fixes #11