Remove useless global vars

Signed-off-by: Connor Yan <126ium@gmail.com>