fixed a rare(?) initial-startup bug