remove curly dangling bracket