small bug fix for filterbyname function