Fixed bugs with already sent headers and URLs