Fixing bug #3449

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