fix mesh bug