fixed threadding issue, remaining offsets was not mutexed and temps was being resized while in use