fix meanfield