fix populate script, incorrect url caused bad request