Fixing bug #3533

http://tracker.modx.com/issues/3533
Merge pull request #20 from Jako/patch-18

Fixing bug #3533