Fixed a bug in the REPLACE command that occurred during specific package and technology combinations.