modx formatting fixes