Fixed issue where protocol was not being read correctly.