Fixed option 4 printing non-existent index