Fixed ClassCastException.