Fixed issue where patches weren't being linked to correctly.