fix static inner class error