fix bug for missing constant in release mode
fix bug when compile release , missing rest kid reference