fix type setting