fix old error and remove unneccesary additional logic

We only need to check that hash correctly.