Fixed some bugs with scanning and recording transfer orders