Fix mocking detection error