fixes issue #195. thanks @laurarussell!