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