fixed error in re-init script