Fixing bug #3493

http://tracker.modx.com/issues/3493
Merge pull request #19 from Jako/patch-17

Fixing bug #3493