fix compile bug on prod