[FIX] fix compile warning from unused variables