fixed inner class ignorance bug