fix view code coverage bug