fix replace provate preserve. thanks tomas!