fix invalid scoped call