Fixed a misused class reader call