integration test bug fix