check if packet is really complete. fixes #1