fix reinitialization