Fix error in populate rake task.