fix losing pattern on re-customization. #235