Fixed the query headers