fix missing staging dirs issue