fixed modx 2.3 bugs