fix #1162
Merge pull request #1167 from belforte/master

fix #1162