Fix resolving classes.