fixed return value of patchHunkCallBack to be consistent