fix bug:couldn't find table when add new devices