fix email bug when reload page