fixed the issue that cannot return to index after success