fix classCache bug - should be an object so no "functions" exist (pop class fails)