simplify array's bounds logic, rollback fix (no bug)