fix http mock bug