fix rerendering