ERROR: requested index [] out of bounds [40]