Removed duplicates in patches.cpp