`metadta` and `headers` variables were inverted!