fix #311
Merge pull request #882 from tshepang/close-em

fix #311