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

Fix