fixed popsize bug