fix(sdk): fix deprecated method