Fixes patch script