Fixing Populate script.