fix class loading bug when using the common classes cache