Restore patches by imeyer