correct syntax error with missing bracket