bugfix: TypeError when using admin stock edit