Fixed freeze issue.