Fixed auto-cast instance.