fixes patch mess