Fixed exception with one point or less

Fixes issue #56.