fix preview_of logic using num_character as threshold