fix devices table overflow