fix syntax error in mode