Fix Bug #46

Fixed issue with using function to declare a class variable before it is
initiated.