fix bug in starting for the first time