fixed initialization of xf_input