fixed possible arena overflow