fix minor populate script bugs