Fix not reading extended entities correctly.