Added missing parameter assignment for window class