fix compile custom patch