Fixed bug when resetting a container that used to be empty.