replace lost close bracket