fix extern var