Fixed file read problem where extra 0-padding bytes from pattern order table were not read.