Removing extra brackets