negative stride and h_size-=8 fix