Fix a bug with custom mounted operations when one is called first.