Another bug fix for brackets