Fix text filtering