fixed recursive issue.