Analyzing and fixing brain computations