The set_pass_func is not always the last to set