fix handler env