fix a github issue ticket #7