fix receiving messages on client