Fixed a bug with filtering removed items