fixed small bug in handleServerMsg()