Issue #23: read-past-end errors