fix bug when view code coverage