Fixed problem with using tagged elements in collections