Fixing this detection of inner inner class