bugfix for 744
Merge pull request #754 from GiorgiyLutidze/bugfix744_2

bugfix for 744