fix type warning