Fixed one more bug where readStructures was returning too early.