Fix fail to format with search option

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>