fix for case when len(D.F)<=scen