bugfix for egg