fix request replacement bug