fixes for populate.php

just some small fixes..