http agent fix