fix cloner no flat inheritance