fix initilization order