Fixed a bug in filtering volumes