fixed initialization problem