fix patch collision