Fixing bug #3730

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