bugfix: check for ambiguous mro before popping