Fix minor errors with population script