Fixed the second bug to do with parsing large packets