fix issue 10186

http://d.puremagic.com/issues/show_bug.cgi?id=10186