bugfix in inheritance java tutorial