fixes #32, thanks @wiox