Second fix for positioning window