Fixed http bug