Fixed the logging in filter