fix generate framework error