fixing issue #7 on github