fixed some genetics bugs