Properly handle the hash

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>