ugly fix for dist problem