Fix Issue 10461

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=10461
Merge pull request #344 from denis-sh/patch-4

Fix Issue 10461