fixed a replacing for es