Fix filter func. Now it works with eventname and username