fix :unsafe error