correcting parameter replacement after cache add