Fix bugs for getting species