Fix bug with checking headers, assuming possible int to be a string