fixing start up bug