Logic Error

Insert and Delete working, replace still has error