fix some startup issue.