try to fix the scalar check