fix environ_cb for perf_cb being removed by mistake.