fix to value id stored in devices