fix issus #15

this is my patch.
fix issus #15

Thanks @sbilly