fix for local classes.