Don't assume 1s between samples in the UI.

Fixes #155