this fixes #405 (and formerly closed-as-wontfix #162)