fixing bug where socket would not receive messages if using uppercase letters in model name