fix engine check_target