fixing patch verification procedure