another NPE in pending order analysis fixed; date of last order added