fixed bug where patches were not found