fixed #1146
Merge pull request #1 from radnotiz/fix/1146

fixed #1146