Correct scan spine size computation.

Fixes #34