Fix issues caused by opening both direct and indirect

Refs #9966