fix populate_if_empty.