Ok now that you have uploaded those final screenshots I can confirm you are NOT experiencing a bug. (If you read the changelog) The repeat until storage full command works at 95% of the storage capacity (useful for small storages and taking out items) and 95% of 400 is 380.
TL:DR Everything is fine in terms of storage