Fixing name undefined on capital export