Fix centering issue caused by rounding error

Fixes #14