Fixed bug in Container::resolve.