fix wrong type err