fix Location headers