small fixes on meta diff and meta apply