fix ajax to allow unselecting brackets