fix trailing ]