fixed bug in server.py and stock.py