onceFix: fixed infinite loop issue.