fix bugs
fix bugs for getArena()