Fixed critical bug on where messages were being sent over http