This issue can be reproduced consistently using the following steps.
- Prepare an entity that already has modules inserted.
- Issue a module upgrade command.
- Before the robots complete the task, issue the next upgrade command.
- As a result, the skipped modules during the upgrade process are mixed into the Storage chest filtered for the modules prepared in step 1.