fix syntax error for preference