fix. replace takes only array