out of bounds (indexing with -1) in case read failure fixes