resolves issue with teardown