Fixing bugs in the species code I just made