Remove extra brackets