Fix bug in reading read-extensions.
Load extensions correctly.