Fix hash bug - caused failure after 35k stages, sigh