Fix for bug which dynamic field isn't used at search.