Incorrectly counted used classes