Bug fixed. Name "type" is built-in. lol