converting a derived mesh to a mesh didnt clear its selection history, which could be invalid after applying a modifier.