fix bug in boot script