Fixed bug in cascade hasher

Change-Id: I6aa29fa82596089336032f665a897da5a2ae95e4