Fixed a million NullPointerErrors due to a non-Static integer