fixes #50 (hopefully)