removed nasty bug in communication layer