Add missing brackets in the end of element list