fixed bug of inner class