Fix bug in 3-entry reading