Fix ticket number search in merge