fixes #1292
Merge pull request #1298 from enesakar/master-issue-1292

fixes #1292