fix regression with --worker option