fix lreplace usage