bugfix saving stock controls