fix run/set_code