fix a bug of egg