Fix some reinitialization of prev!