Fixed unchecked hash before accessing it.