Fixed package_eof and package_length buffer