Fix Layout bug for modx2.3.1