fixed error for multiple viewing devices

fixed multiple viewing device error
Merge pull request #3 from ExPHAT/master

fixed error for multiple viewing devices