small bugfix for pinned elements in containers