Fix brackets bug