Fixing bug #9755

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