Fix dependency issue in frontend lib