Fixing bug #8909

http://tracker.modx.com/issues/8909
Fixing bug #8909

http://tracker.modx.com/issues/8909
Merge pull request #13 from Jako/patch-11

Patch 11