Fix for popup passthrough mode stucking