Fixed failing to get headers