Fixes internal class checking.