maybe fixed #928
Merge pull request #1042 from qreal/#928

#928