Fix the edge case of text evaluation