fixed #687
Merge pull request #786 from qreal/#687

fixed #687