fix -z option