Fixed undefined after reinitiation