fixed autopopulate in p autopop