Fixed a bug in volumes creation