fixed sha validation bugs
fixed piece data resetting