Strip out ending of labelings

Fixes #52