fix type warns