Fix incorrect parsing of temporary elements