fix #19

see writeup here: https://gist.github.com/eighttrackmind/7c5108b28abe021e7da8