(Hevc):Fixing few bugs when running the simulator.