fix bugs in exec env