fix startup bug.
fix bug in previous commit.