fix all inner classes that can be static