Fixed invalid index counts on rendering call.