modify case if field type in search model