Fixed error with selecting device in triangle test.