temp fix for ArrayIndex error