fix patch collapse fail