Fixed issues with editing stocks