Fixing bug #9803

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