fixed incorrect call to static variable