Fixing bug #3449

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

Fixing bug #3449