Fixing bug #8909

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