fix warning expectation