Fixed errors cause by initializign a struct field