Fix null pointer with getting arena