Removed bugs, filter works perfectly now.