Add the missing bracket detection