fix #1185
Merge pull request #1188 from belforte/master

fix #1185