Fix a bug in for loop
Add volume export