Removed try-catch around filter function because of weird race condition