fixed #506, thanks @haritop!

thanks @haritop, for both the report and for also providing the fix for
it!!