Fixing bug #3533

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