definitive out of array bugfix