Fix temporary elements output wrt. reversed temporary edges