fix websocket hardcode and add null check for studentnum