fix for window api changes to term