fixed regression when displaying scalars