Fixed typing in instance creators.