fix bug where worker wasn't saving device