Fixed Declarion Faults

Getvariable null defaults of wrong type