Fixing bug #9755

http://tracker.modx.com/issues/9755
Merge pull request #47 from Jako/patch-3

Fixing bug #9755