Swaped id and type