fixed start up bug