Fixing bug #3493

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