Solved some small bugs in performance viewer.