The value for index 5 is undefined