fix the bug that saveStater is in fact not used