Extra patch. Fixes bug in reading scalars.