Data logging fix