fix some bug viewer