bug fix. Protocol version 6