Fixed a bug where GPU 0 would be excluded.