Bug fix for editing stocks