fix bug where id of container was invalid