r1317 + fixed 2 lost stock records