Fix a bug

Check if there is incorrect open bracket.