fix #1163
Merge pull request #1165 from belforte/master

fix #1163