Correcting error handling in assembly restocking