Always check that outer class name is not the same as inner class name. If it is, set outer class name to null.