fixed hash checking / creation

Change-Id: I4ed95fad1ebf36fbeca446f802787f1c468ab4b7