fix chboot bug introduced in its last change