fixed compilation with current distribution