Fixed Bug in Patch ListGeneration