Fix initialize for cd