bug fix #4096
Merge pull request #756 from suheb/master

bug fix #4096