Fix APIFactory.class