Fixing a performance bug when opening comment pane