Because "thought" is past tense "hadn't" is correct. "Had not" is past tense while "have not" is present tense. " It is present tense because it has not happened yet (still waiting on it to be fixed up).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.