fix custom_design_apply sql error