Fixed bug where static variable was assumed to be in current class.  Fixes #31