prevent some errors in mesh loading