Fixes a replacement error