fix scalar value warning