bracket error fix