Fix replace (by default only replaces for occurrence)