Fix filter error

fixes #382