Minor bug fix for recycle/resort script