fixed fill list while statement