fixes issue #6 - credit to @natea