Fix incorrect output filename given to packet
Fix errors happening in dispatcher mode