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

http://tracker.modx.com/issues/10198