fix trailing bracket