Fixed some bugs in the syntax editor preference page