Fix for populate.js