Fixed crash while filtering