bug fixed: dismatch brackets