Fix loading state issue.