fixed issue resolving elements from container