fixed another minor device number bug