fix mismatched curly bracket