See http://tracker.modx.com/issues/9841