Fixing incorrect brackets