correctly fix tmp api change