Fix a bug in the closure viewer