fix: error array index