minor bug fix for use with node modules