fix bug when reload