fixed bug in population class