Fix phase reset