#365: fix status lines bug

This fixes #365. @arjclark, please review.