fix bug in ordered folder case