fix bug in folder output (#33)