fix unused variables in third-party