small bugfix concerning pinned elements in containers