fixed error for multiple viewing devices

fixed multiple viewing device error