Changed an error with the static variables