Fixed a bug that deleting all genes