Fix bram/frequency lookup.