Fix weight calculation when emptying into a container