Device not being saved so fixed it