fix "scalar" error message