fix the process problem when enter background