Fixed fillRequiredEntry function