fix possible error if incompatible cartero version is used