Bug fix for recieve message length.