hotfix of enforce_consistent_volumes function