fixes a minor bug when 'type' is used in a wrong way
fixes a minor bug when 'type' is used in a wrong way

judofyr/Nim,zachaysan/Nim,sarvex/Nim-lang,nimLuckyBull/Nim,MrJohz/Nim,MrJohz/Nim,greyanubis/Nim,tmm1/Nim,Senketsu/Nim,mbaulch/Nim,sarvex/Nim-lang,gokr/Nim,tmm1/Nim,reactormonk/nim,sarvex/Nim-lang,zachaysan/Nim,Matt14916/Nim,greyanubis/Nim,BlaXpirit/nim,greyanubis/Nim,haiodo/Nim,tulayang/Nim,haiodo/Nim,russpowers/Nim,nafsaka/Nim,fmamud/Nim,JCavallo/Nim,BlaXpirit/nim,Salafit/Nim,SSPkrolik/Nim,MrJohz/Nim,fredericksilva/Nim,BlaXpirit/nim,kirbyfan64/Nim,zachaysan/Nim,fmamud/Nim,dom96/Nim,jfhg/Nim,nanoant/Nim,MrJohz/Nim,mbaulch/Nim,xland/Nim,SSPkrolik/Nim,nanoant/Nim,xland/Nim,judofyr/Nim,singularperturbation/Nim,greyanubis/Nim,nanoant/Nim,MrJohz/Nim,judofyr/Nim,xland/Nim,judofyr/Nim,Matt14916/Nim,nimLuckyBull/Nim,singularperturbation/Nim,endragor/Nim,nanoant/Nim,JCavallo/Nim,russpowers/Nim,russpowers/Nim,reactormonk/nim,Senketsu/Nim,jfhg/Nim,Dhertz/Nim,BlaXpirit/nim,msmith491/Nim,kirbyfan64/Nim,singularperturbation/Nim,jsanjuas/Nim,gokr/Nim,kirbyfan64/Nim,fmamud/Nim,nanoant/Nim,douglas-larocca/Nim,nafsaka/Nim,singularperturbation/Nim,singularperturbation/Nim,reactormonk/nim,kirbyfan64/Nim,xland/Nim,greyanubis/Nim,gokr/Nim,douglas-larocca/Nim,dom96/Nim,russpowers/Nim,gokr/Nim,mbaulch/Nim,sferik/Nim,bvssvni/Nim,xland/Nim,jfhg/Nim,Matt14916/Nim,sarvex/Nim-lang,bvssvni/Nim,reactormonk/nim,bvssvni/Nim,zachaysan/Nim,reactormonk/nim,jsanjuas/Nim,haiodo/Nim,kirbyfan64/Nim,msmith491/Nim,nafsaka/Nim,Matt14916/Nim,mbaulch/Nim,russpowers/Nim,nanoant/Nim,jsanjuas/Nim,dom96/Nim,jsanjuas/Nim,dom96/Nim,xland/Nim,sferik/Nim,reactormonk/nim,fredericksilva/Nim,sferik/Nim,BlaXpirit/nim,tmm1/Nim,kirbyfan64/Nim,nafsaka/Nim,JCavallo/Nim,greyanubis/Nim,judofyr/Nim,fmamud/Nim,judofyr/Nim,greyanubis/Nim,singularperturbation/Nim,tulayang/Nim,Salafit/Nim,reactormonk/nim,bvssvni/Nim,SSPkrolik/Nim,sferik/Nim,tmm1/Nim,JCavallo/Nim,Dhertz/Nim,nafsaka/Nim,judofyr/Nim,fmamud/Nim,gokr/Nim,judofyr/Nim,Dhertz/Nim,BlaXpirit/nim,endragor/Nim,msmith491/Nim,SSPkrolik/Nim,nimLuckyBull/Nim,jsanjuas/Nim,singularperturbation/Nim,SSPkrolik/Nim,msmith491/Nim,sarvex/Nim-lang,BlaXpirit/nim,jsanjuas/Nim,fredericksilva/Nim,MrJohz/Nim,nimLuckyBull/Nim,sferik/Nim,haiodo/Nim,tmm1/Nim,nimLuckyBull/Nim,bvssvni/Nim,endragor/Nim,nafsaka/Nim,zachaysan/Nim,Matt14916/Nim,mbaulch/Nim,reactormonk/nim,Senketsu/Nim,fredericksilva/Nim,Salafit/Nim,msmith491/Nim,Salafit/Nim,tulayang/Nim,nanoant/Nim,msmith491/Nim,tmm1/Nim,endragor/Nim,jfhg/Nim,sferik/Nim,JCavallo/Nim,haiodo/Nim,jfhg/Nim,MrJohz/Nim,douglas-larocca/Nim,russpowers/Nim,tulayang/Nim,endragor/Nim,tmm1/Nim,Salafit/Nim,fredericksilva/Nim,Dhertz/Nim,haiodo/Nim,haiodo/Nim,Senketsu/Nim,dom96/Nim,fredericksilva/Nim,jsanjuas/Nim,bvssvni/Nim,SSPkrolik/Nim,fredericksilva/Nim,Dhertz/Nim,BlaXpirit/nim,JCavallo/Nim,kirbyfan64/Nim,douglas-larocca/Nim,Senketsu/Nim,SSPkrolik/Nim,Senketsu/Nim,tulayang/Nim,endragor/Nim,jfhg/Nim,douglas-larocca/Nim,nafsaka/Nim,Dhertz/Nim,bvssvni/Nim,xland/Nim,sferik/Nim,nimLuckyBull/Nim,fmamud/Nim,sferik/Nim,dom96/Nim,JCavallo/Nim,endragor/Nim,gokr/Nim,gokr/Nim,gokr/Nim,sarvex/Nim-lang,Senketsu/Nim,dom96/Nim,russpowers/Nim,douglas-larocca/Nim,Matt14916/Nim,zachaysan/Nim,SSPkrolik/Nim,fmamud/Nim,zachaysan/Nim,Matt14916/Nim,mbaulch/Nim,sarvex/Nim-lang,kirbyfan64/Nim,Dhertz/Nim,tulayang/Nim,douglas-larocca/Nim,fredericksilva/Nim,douglas-larocca/Nim,Salafit/Nim,nimLuckyBull/Nim,jfhg/Nim,Salafit/Nim,msmith491/Nim,mbaulch/Nim