Fixed $headers variable mismatch