fix #374 without a new copy/paste mistake

and with tabs instead of spaces for indentation...
Merge pull request #382 from 2072/issue374patch

fix #374 (#375) without a new copy/paste mistake