fix core class autoload when overridiing core components