fix stock update