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