Bugfix suggest by @troels, closes #1. Tak!