Fix crash on replacement