Fixed #576.
Merge pull request #583 from alexey-rabets/master

Fix #576.
Merge remote-tracking branch 'clone/master'