Fix indexscan case and ee crash for index count case