Fixing device online/offline flag.