Fixed a bug after refactoring eido