fixing bug in start procedure