corrected a missing ] bug