non-existent variable $type

Signed-off-by: John Rayes <live627@gmail.com>
Merge pull request #1613 from live627/Reports

non-existent variable $type