Fixed static variable error.