Fixed small NPE
Code to update the container when trading