fix inner class define