bugfix ClassCast