Fixes in filters

Fixes #65, #78, #79