Fixing bug #9813

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