fixed a few bugs related to filters