devices count fix