fix a bug of edog