ClassCastException fixed.