fix bug and edit cms sort