Fix scaffold tag bug

Fixes #171