fix devices table