fixed some response header bugs.