Fixes https://github.com/slush0/stratum/issues/4