Bug: Fixed undefined unvariable type
Merge pull request #742 from vegetableman/patch-1

Fix: undefined unvariable 'type'