After listening to Brynjolf's scheme and sending the poor guy to jail to "cool off" for a few days, he's still stuck in there, he's even selling items out of his cell... I found a console command to free him but now he's standing at his stall totally unaware of the fact I've already helped him discover his past in another quest.
Is there a way via console commands to fix him? It's annoying as hell talking to him and having him to even acknowledge that his past has been revealed already.