fixed #865
Merge pull request #873 from qreal/865

fixed #865