Fixed ClassCastException
Generated source code.