fix closing brackets