fixed code coverage bug