fix inner class method parallel region bug