Try to fix jaja optimize with empty data.