Fix negative values. Fixes #3