fix #407 for real :D

So that's the real deal. Passes tests on FreeBSD.