Fix headers being undefined