fix double load and clear of mesh